import request from '@/utils/request'

// 文章列表
export function queryList(params) {
    return request({
      url: '/article/admin/list',
      method: 'get',
      params
    })
  }
// 新增文章
  export function save(params) {
    return request({
      url: '/article/admin/save',
      method: 'post',
      data:params
    })
  }
  //更新文章
  export function update(params) {
    return request({
      url: '/article/admin/update',
      method: 'post',
      data:params
    })
  }
  //文章详情
  export function getInfo(params) {
    return request({
      url: '/article/admin/getInfo',
      method: 'get',
      params
    })
  }
  